package info.cs52.fes.action.dish;

import info.cs52.fes.FesAction;
import info.cs52.fes.dao.RecipeDAO;
import info.cs52.fes.data.Recipe;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ListAction extends FesAction {

	private List<Recipe> dishes;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		dishes = RecipeDAO.list();
	}
	
	public List<Recipe> getDishes() {
		return dishes;
	}
	
}
